@import '../common/_common.scss';
.myShopping
{
    line-height: 30px;

    width: 1190px;
    margin: 0 auto;
    .title
    {
        margin: 20px 0;
        h2
        {
            font-size: $px18;
            font-weight: normal;

            float: left;

            margin-right: 20px;

            color: $c333;
        }
        .tip{ float: left}
        @at-root
        {
            .tip
            {
                line-height: 30px;
                padding: 0 0 0 10px;
                background-color: #f4e0df;
                vertical-align: top;
                @include inline_block;
                .warm
                {
                    width: 20px;
                    height: 20px;
                    margin-top:5px;
                    margin-right: 10px;
                    vertical-align: top;
                    background-image: url(../../img/warm.png);
                    background-repeat: no-repeat;
                    float: left;
                }
                span
                {
                    font-size: 14px;
                    color: $c666;
                    float: left;
                    @include inline_block;
                }
                a
                {
                    width: 50px;
                    margin-left: 10px;
                    float: left;
                    text-align: center;
                    color: $cfff;
                    background: #e51c23;
                    cursor: pointer;

                    &:hover{
                        text-decoration: none;
                    }

                    @include inline_block;
                }
            }
        }
    }
    .shoppingNav
    {
        font-size: $px14;
        line-height: 1;

        padding: 15px 20px;

        border-bottom: 1px solid #f2f2f2;
        background: $cfff;
        li
        {
            float: left;
        }
        .txt1
        {
            width: 162px;

            text-align: left;
        }
        .txt2
        {
            width: 354px;
            margin-right: 35px;

            text-align: center;
        }
        .txt3,
        .txt4,
        .txt5
        {
            width: 178px;

            text-align: center;
        }
        .txt6
        {
            width: 56px;
            padding-left: 9px;

            text-align: center;
        }
    }
    .cart-checkbox
    {
        float: left;
        .chb
        {
            width: 12px;
            height: 12px;
            margin-right: $px10;
        }
        .check
        {
            width: 10px;
            height: 10px;
            margin-top: -1px;

            border: 1px solid #cbcbcb;

            @include inline_block;
        }
    }
    .choose-icon
    {
        margin-right: 10px;

        background: url(../../img/choose-icon.png) no-repeat;

        @include inline_block;
    }
    .ticks
    {
        width: 10px;
        height: 10px;

        background-position: 0 -10px;
    }
}
//整个商品区域
.goodBlock
{
    margin-bottom: 20px;

    background: #f5f5f5;
    .title2
    {
        padding: 12px 20px;

        color: $c333;
        border-bottom: 2px solid #03a9f4;
        background: $cfff;
        span
        {
            font-size: $px14;
        }
        em
        {
            margin: 0 5px;
        }
        .tip
        {
            background: $cfff;
        }
    }
}
//商品每行区域
.goods-container + .goods-container
{
    margin-top: 1px;
}
.goods-container
{
    padding: 15px 20px;

    background: $cfff;
    .sale
    {
        font-size: $px14;
        line-height: 1;

        margin-bottom: 10px;
        padding-left: 20px;
        .sale_title
        {
            line-height: 20px;

            width: 40px;
            height: 20px;
            margin-right: 10px;

            text-align: center;

            color: $cfff;
            border-radius: 3px;
            background: #ec8a8b;

            @include inline_block;
        }
        .sale_content
        {
            position: absolute;
            z-index: 1;

            overflow: hidden;

            width: 115px;
            height: 20px;
            margin-top: -1px;
            padding: 0 5px;

            border: 1px solid #fff;
            background-color: #fff;
            &:hover
            {
                overflow-x: hidden;
                overflow-y: visible;

                height: auto;

                border-color: #cfcfcf;
                .sale_icon
                {
                    background-position: 0 0;
                }
            }
            li
            {
                float: none;

                padding: 3px 5px 5px 0;

                cursor: default;

                background-color: #fff;
            }
        }
        .sale_list
        {
            overflow: hidden;

            width: 100%;
        }
        .sale_icon
        {
            position: absolute;
            top: 5px;
            right: 5px;

            width: 9px;
            height: 6px;

            background-image: url('/resources/img/select_icon_gray.png');
            background-repeat: no-repeat;
            background-position: 0 -8px;
        }
    }
    //goods部分
    li
    {
        float: left;
    }
    .cart-checkbox
    {
        line-height: 120px;
    }
    .goodImg
    {
        width: 120px;
        height: 120px;
        margin-right: 20px;
        float: left;
    }
    // JD的logo
    .jdlogo
    {
        position: absolute;

        width: 15px;
        height: 14px;

        background: url(../../img/jd.jpg) no-repeat;
    }
    .goodsInfo
    {
        width: 354px;
        margin-right: 34px;
        h2
        {
            font-size: $px14;
            font-weight: normal;
            line-height: 1.5;

            margin-bottom: 17px;

            color: $c333;
        }
        //只有一个标题的情况
        .singleT
        {
            margin: 39px 0;
        }
        p
        {
            font-size: $px14;
            line-height: 1;

            margin-bottom: 10px;

            color: $c999;
        }
    }
    .price
    {
        font-size: $px14;
        line-height: 1.2;
        width: 178px;
        padding: 30px 0;
        text-align: center;
    }
    .num
    {
        width: 178px;
        padding: 35px 0;
        text-align: center;
    }
    .btn_number
    {
        line-height: 1;
        @include inline_block;
        a:first-child
        {
            margin-right: 5px;
        }
        .disabled
        {
            background: #f0f0f0;
        }
        a
        {
            font-size: $px14;
            line-height: 30px;

            float: left;

            width: 30px;
            height: 30px;

            text-align: center;
            text-decoration: none;

            color: $c333;
            border: 1px solid #e3e3e3;

            background-color: #fff;

            @include inline_block;
        }
        input
        {
            line-height: 30px;

            float: left;

            width: 50px;
            height: 30px;
            margin-right: 5px;

            text-align: center;
            vertical-align: baseline;

            border: 1px solid #e3e3e3;

            @include inline_block;
        }
    }
    .total
    {
        font-size: 16px;
        font-weight: bold;
        line-height: 1.2;

        width: 178px;
        padding: 25px 0;

        text-align: center;

        color: #e51c23;
    }
    .delate
    {
        font-size: $px14;

        width: 65px;
        padding: 45px 0;

        text-align: center;
        a
        {
            margin-left: 9px;

            color: $c333;
        }
    }
}
//失效状态
.goods-container.lose,
.goods-container.mix.lose
{
    background: #f0f0f0;
    .loseTxt
    {
        line-height: 1.4;

        width: 15px;
        padding: 0 3.5px;
    }
    .goods
    {
        .goodsInfo h2,
        .goodsInfo p,
        .price,
        .btn_number a,
        .btn_number input,
        .total,
        .delate a
        {
            color: #d0d0d0;
            background: #f0f0f0;
        }
    }
}
.goods-container.lose
{
    .loseTxt
    {
        margin-top: 37px;
    }
}
.goods-container.mix.lose
{
    .loseTxt
    {
        margin-top: 115px;
    }
}
//选中状态
.goods-container.active,
.goods-container.mix.active
{
    background: #eaf5f9;
}

//混合商品
.goods-container.mix
{
    .cart-checkbox
    {
        line-height: 271px;
    }
    .mixInfo
    {
        @include inline_block;
    }
    .main
    {
        padding-bottom: 15px;

        border-bottom: 1px solid #f0f0f0;
    }
    .assistant
    {
        padding-top: 15px;
    }
    .mixOperation
    {
        float: left;

        margin-top: 82px;

        @include inline_block;
    }
}
